package com.zhuiyun.educations.api.rotationimage.service;

import com.zhuiyun.educations.api.rotationimage.entity.ImageFile;
import com.zhuiyun.educations.api.rotationimage.entity.RotationImage;
import com.zhuiyun.educations.common.response.CommonResult;
import com.zhuiyun.educations.util.pageUtil.PageRequest;
import com.zhuiyun.educations.util.pageUtil.PageResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @ClassName RotationImageService
 * @Description TODO 轮播图业务逻辑层
 * @Author 杨友朋
 * @Date 2023/6/21 10:28
 **/
public interface RotationImageService {
     /**
     * @Author 杨友朋
     * @Description TODO 分页全查轮播图信息
     * @Date 2023/6/21 20:46
     * @Return PageResult
     * @param rotationImage，pageRequest
     */
    PageResult selectRotationImage(RotationImage rotationImage, PageRequest pageRequest);

    /**
     * @Author 杨友朋
     * @Description TODO 添加单个图片
     * @Date 2023/6/21 20:46
     * @Return CommonResult
     * @param file，rotationImage，imageFile
     */
    CommonResult addRotationImage(MultipartFile file, RotationImage rotationImage, ImageFile imageFile);

    /**
     * @Author 杨友朋
     * @Description TODO 添加一组轮播图
     * @Date 2023/6/21 20:46
     * @Return CommonResult
     * @param file，rotationImage，imageFile
     */
    CommonResult addRotationImages(MultipartFile[] file, RotationImage rotationImage, ImageFile imageFile);

    /**
     * @Author 杨友朋
     * @Description TODO 根据id删除轮播图信息
     * @Date 2023/6/21 20:46
     * @Return CommonResult
     * @param id
     */
    CommonResult deleteRotationImage(Integer id);

    /**
     * @Author 杨友朋
     * @Description TODO 根据ids批量删除轮播图信息
     * @Date 2023/6/21 20:47
     * @Return CommonResult
     * @param ids
     */
    CommonResult deleteImageByIds( List<Integer> ids);
}
